<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('新增班级管理')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-Management-add">
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">班级主键：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="classMajorkey" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
            <div class="form-group">    
                <label class="col-sm-3 control-label">班级名称：</label>
                <div class="col-sm-8">
                    <input name="className" class="form-control" type="text">
                </div>
            </div>
<!--            <div class="form-group">-->
<!--                <label class="col-sm-3 control-label">班主任：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="classHeadTeacher" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
            <div class="form-group">
                <label class="col-sm-3 control-label">班主任：</label>
                <div class="col-sm-8">
                    <select name="classHeadTeacher" class="form-control" th:with="type=${@dict.getType('Class_Head_teacher')}">
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
                    </select>
                </div>
            </div>
<!--            <div class="form-group">-->
<!--                <label class="col-sm-3 control-label">开班时间：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="classOpeningTime" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
            <div class="form-group">
                <label class="col-sm-3 control-label">开班时间：</label>
                <div class="col-sm-8">
                    <input type="text" class="time-input" id="classOpeningTime" name="classOpeningTime"/>
                </div>
            </div>
            <div class="form-group">
            <label class="col-sm-3 control-label">所属学籍：</label>
            <div class="col-sm-8">
                <div class="radio-box" name="classStudentStatus" th:each="dict : ${@dict.getType('Class_Student_status')}">
                    <input type="radio" th:id="${'classStudentStatus' + dict.dictCode}" name="classStudentStatus" th:value="${dict.dictValue}" th:checked="${dict.default}">
                    <label th:for="${'classStudentStatus' + dict.dictCode}" th:text="${dict.dictLabel}"></label>
                </div>
            </div>
             </div>


            <div class="form-group">
                <label class="col-sm-3 control-label">班级类型：</label>
                <div class="col-sm-8">
                    <div class="radio-box" name="classType" th:each="dict : ${@dict.getType('Class_Type')}">
                        <input type="radio" th:id="${'Class_Type' + dict.dictCode}" name="Class_Type" th:value="${dict.dictValue}" th:checked="${dict.default}">
                        <label th:for="${'Class_Type' + dict.dictCode}" th:text="${dict.dictLabel}"></label>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">班级学科：</label>
                    <div class="col-sm-8">
                        <div class="radio-box" name="classDiscipline" th:each="dict : ${@dict.getType('Class_Discipline')}">
                            <input type="radio" th:id="${'classDiscipline' + dict.dictCode}" name="classDiscipline" th:value="${dict.dictValue}" th:checked="${dict.default}">
                            <label th:for="${'classDiscipline' + dict.dictCode}" th:text="${dict.dictLabel}"></label>
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">校区：</label>
                    <div class="col-sm-8">
                        <div class="radio-box" name="classCampus" th:each="dict : ${@dict.getType('Class_Campus')}">
                            <input type="radio" th:id="${'classCampus' + dict.dictCode}" name="classCampus" th:value="${dict.dictValue}" th:checked="${dict.default}">
                            <label th:for="${'classCampus' + dict.dictCode}" th:text="${dict.dictLabel}"></label>
                        </div>
                    </div>
                </div>

        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "system/Management"
        $("#form-Management-add").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/add", $('#form-Management-add').serialize());
            }
        }
    </script>
</body>
</html>